package com.triptogether.utils.db.models;

import java.util.Date;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(tableName = ShoppingList.TABLE_NAME)
public class ShoppingList {

	public static final String TABLE_NAME = "ShoppingLists";
	public static final String TRIP = "trip";

	@DatabaseField(generatedId = true)
	private long id;
	@DatabaseField
	private String shoppingListName;
	@DatabaseField
	private Date dateCreated;
	@DatabaseField
	private Date dateModified;
	@DatabaseField(foreign = true, columnName = TRIP)
	private Trip trip;

	public ShoppingList() {}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getShoppingListName() {
		return shoppingListName;
	}

	public void setShoppingListName(String shoppingListName) {
		this.shoppingListName = shoppingListName;
	}

	public Date getDateCreated() {
		return dateCreated;
	}

	public void setDateCreated(Date dateCreated) {
		this.dateCreated = dateCreated;
	}

	public Date getDateModified() {
		return dateModified;
	}

	public void setDateModified(Date dateModified) {
		this.dateModified = dateModified;
	}

	public Trip getTrip() {
		return trip;
	}

	public void setTrip(Trip trip) {
		this.trip = trip;
	}
}
